﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="KeywordsReport.aspx.cs" Inherits="KeywordsReport" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="css/jquery-ui.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery-ui.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
        $(function () {
            BindBtn();
            AddTrClass($("#listinfo"));
            $("#txtDateTime").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd" });
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="conBox">
        <table class="form-table">
            <thead>
                <tr>
                    <td colspan="3">
                        查询选项
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr class="tr1">
                    <td class="oneTd">
                        <div>
                            分类：<asp:DropDownList ID="ddlSort" runat="server">
                                <asp:ListItem Value="0" Text="所有分类"></asp:ListItem>
                            </asp:DropDownList>
                            类型：<asp:DropDownList ID="ddlType" runat="server">
                                <asp:ListItem Value="0" Text="所有(1-30)"></asp:ListItem>
                                <asp:ListItem Value="1" Text="第一页(1-10)" Selected="True"></asp:ListItem>
                                <asp:ListItem Value="2" Text="第二页(11-20)"></asp:ListItem>
                                <asp:ListItem Value="3" Text="第三页(21-30)"></asp:ListItem>
                            </asp:DropDownList>
                            日期：<asp:TextBox ID="txtDateTime" runat="server" CssClass="txtbox" Style="width: 100px"></asp:TextBox>
                            <asp:Button ID="btnSubmit" runat="server" Text="查询" OnClick="btnSubmit_Click" CssClass="button" />
                            <asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="button" 
                                onclick="btnExcel_Click" />
                            <asp:Button ID="btnReset" runat="server" Text="重置" OnClick="btnReset_Click" CssClass="button"
                                Style="display: none;" /></div>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="grid-box">
            <table class="grid-table">
                <thead>
                    <tr>
                        <th class="align-l" style="width:50px;">
                            序号
                        </th>
                        <td class="align-l">
                            关键字
                        </td>
                        <asp:Repeater ID="rptMedical" runat="server">
                            <ItemTemplate>
                                <td>
                                    <%#Server.HtmlEncode(Eval("Name").ToString())%></a>
                                </td>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tr>
                </thead>
                <tbody id="listinfo">
                    <asp:Repeater ID="rptKeywords" runat="server" 
                        onitemdatabound="rptKeywords_ItemDataBound">
                        <ItemTemplate>
                            <tr>
                                 <td>
                                    <%#nNum++%>
                                </td>
                                <td>
                                    <a href="http://www.baidu.com/s?wd=<%#Server.UrlEncode(Eval("Name").ToString())%>"
                                        target="_blank">
                                        <%#Server.HtmlEncode(Eval("Name").ToString())%></a>
                                </td>
                                <asp:Literal ID="ltlTD" runat="server"></asp:Literal>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div id="noData" runat="server">
                <div class="noDateMsg">
                    没有任何信息！</div>
            </div>
            <div id="pageinfo" class="page">
                <webdiyer:AspNetPager ID="anpPage" runat="server" OnPageChanging="anpPage_PageChanging"
                    CurrentPageButtonClass="curPage" PageSize="100" AlwaysShow="true" ShowCustomInfoSection="left" CustomInfoTextAlign="Left" LayoutType="Table">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
